package com.mysoft.gfyx.clue.remoteservice;

import com.mysoft.framework.rpc.annotation.PubAction;
import com.mysoft.framework.rpc.annotation.RemoteAction;
import com.mysoft.framework.rpc.annotation.RemoteService;
import com.mysoft.gfyx.clue.remoteservice.dto.CreditCodeBaseRequestDto;
import com.mysoft.gfyx.clue.remoteservice.dto.GetPurchaseContactsRequestDto;
import com.mysoft.gfyx.common.dto.GetInfoByIdRequestDto;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@RemoteService(appCode = "4022", businessCode = "40220901", path = "/developerPub")
public interface RemoteDeveloperService {
    @RemoteAction(value = "/getMainData")
    Map<String, Object> getMainData(@RequestBody CreditCodeBaseRequestDto dto);

    @RemoteAction(value = "/getPurchaseContacts")
    List<Map<String, Object>> getPurchaseContacts(@RequestBody GetPurchaseContactsRequestDto dto);

    @RemoteAction(value = "/getPurchaseProjects")
    List<Map<String, Object>> getPurchaseProjects(@RequestBody GetPurchaseContactsRequestDto dto);

    @RemoteAction(value = "/getContactInfo")
    Map<String, Object> getContactInfo(@RequestBody GetInfoByIdRequestDto dto);

    @RemoteAction(value = "/getMainDataMulti")
    List<Map<String, Object>> getMainDataMulti(@RequestBody List<String> creditCode);

    @RemoteAction(value = "/getLabelMulti")
    List<Map<String, Object>> getLabelMulti(@RequestBody List<String> creditCode);
}
